package in.iqing.view.activity;

import android.os.Bundle;

import in.iqing.base.BaseActivity;
import in.iqing.control.util.IntentUtil;
import in.iqing.app.R;

/**
 * Created by neavo on 2014/6/23.
 */

public class SplashActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_splash);
	}

	@Override
	protected void onPostCreate(Bundle savedInstanceState) {
		super.onPostCreate(savedInstanceState);

		getWindow().getDecorView().postDelayed(new Runnable() {

			@Override
			public void run() {
				finish();
				IntentUtil.startActivity(getActivity(), MainActivity.class);
			}
		}, 2000);
	}
}
